<template>
  <div class="container">
    <div class="title">
      <span>Packages</span>
      <span>Truck</span>
    </div>
    <div class="main">
      <div class="item">
        <a href="#/packing">
          <div class="item-img">
            <img :src="packImg" style="width: 90px;"/>
          </div>
          <div class="text">装货</div>
        </a>
      </div>

      <div class="item">
        <a href="#/unpacking">
          <div class="item-img">
            <img :src="unPackImg" style="width: 70px;"/>
          </div>
          <div class="text">卸货</div>
        </a>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import packImg from '../assets/pack.png'
import unPackImg from '../assets/unpack.png'
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 55px;
  font-weight: 1000;
  margin: 3vw 0px 0px 5vw;
}

.title span:first-child {
  background: linear-gradient(to right, red, orange, green, blue, indigo, violet);
  -webkit-background-clip: text;
  color: transparent;
  margin-right: 8px;
}

.title span:last-child {
  color: darkblue;
}

.main {
  margin-top: 20vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100vh;
  padding: 0px 30vw;
}

.item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.item-img {
  background-color: lightblue;
  width: 120px;
  height: 120px;
  border-radius: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item a {
  text-decoration: none;
  color: gray;
}

.item .text {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
}
</style>
